<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script src="form.js"></script>
</head>

<body>
    <!--form表单的js操作-->
    <form>
        <input id="username" type="text" name="username" value="1111">
        <input type="password" name="password">

        <input type="checkbox" name="hobby" id="hobby1" >
        <label for="hobby1">篮球</label>
        <input type="checkbox" name="hobby" id="hobby2">
        <label for="hobby2">足球</label>
        <input type="checkbox" name="hobby" id="hobby3">
        <label for="hobby3">排球</label>
        <input type="button">
    </form>


</body>

</html>